﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using KPIS.GERP.SERVICE.Model;
using KPIS.GERP.SERVICE.DAL;

namespace KPIS.GERP.SERVICE.WorkflowService.WCFService
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "AbsenceWCF" in code, svc and config file together.
    // NOTE: In order to launch WCF Test Client for testing this service, please select AbsenceWCF.svc or AbsenceWCF.svc.cs at the Solution Explorer and start debugging.
    public class AbsenceWCF : IAbsenceWCF
    {
        //public List<hrm_ps_absence> GetAbsenceStatus()
        //{
        //    List<hrm_ps_absence> lst = new DAL.Absence().GetHrmPsAbsence(
        //        null
        //        , null
        //        , null
        //        , null
        //        , false
        //        , false);

        //    return lst;
        //}

        //public List<hrm_ps_absence> GetAbsenceStatus(string emp_seq)
        //{
        //    List<hrm_ps_absence> lst = new DAL.Absence().GetHrmPsAbsence(
        //                   null
        //                   , null
        //                   , emp_seq
        //                   , null
        //                   , false
        //                   , false);
        //    return lst;
        //}

        //public List<hrm_ps_absence> GetAbsenceStatus(string emp_seq, string bgm_year)
        //{
        //    List<hrm_ps_absence> lst = new DAL.Absence().GetHrmPsAbsence(
        //                   null
        //                   , null
        //                   , emp_seq
        //                   , bgm_year
        //                   , false
        //                   , false);
        //    return lst;
        //}

        public List<hrm_ps_absence> GetAbsenceStatus(string emp_seq, string bgm_year,string absence_type_seq)
        {
            List<hrm_ps_absence> lst = new DAL.Absence().GetHrmPsAbsence(
                           null
                           , absence_type_seq
                           , emp_seq
                           , bgm_year
                           , false
                           , false);
            return lst;
        }

        //public List<hrm_ps_absence> GetAbsenceStatus(string emp_seq, string bgm_year, string absence_type_seq, string absence_seq)
        //{
        //    List<hrm_ps_absence> lst = new DAL.Absence().GetHrmPsAbsence(
        //                   absence_seq
        //                   , absence_type_seq
        //                   , emp_seq
        //                   , bgm_year
        //                   , false
        //                   , false);
        //    return lst;
        //}
    }
}
